package com.demo.cglib;

import java.lang.reflect.Method;

import net.sf.cglib.proxy.CallbackFilter;

public class MyCglibFilter implements CallbackFilter {

	public int accept(Method method) {
		if(!"query".equals(method.getName())){
			return 0;
		}
		return 1;
	}
}
